import request from '@/utils/request'
export default {

    logout(phone) {
        return request({
            url: `/user/logout/${phone}`,
            method: 'post',
        })
    },


    //登录
    submitLogin(userInfo) {
        return request({
            url: `/user/login`,
            method: 'post',
            data: userInfo
        })
    },
    //根据token获取用户信息
    getLoginInfo() {
        return request({
                url: `/ucenterservice/apimember/auth/getLoginInfo`,
                method: 'get',
                // headers: {'token': cookie.get('guli_token')}
            })
            //headers: {'token': cookie.get('guli_token')} 
    }
}